<?php if ($tasks->count()==0){
  ?><p class="note_detail"><small><?php echo "There are no tasks against this milestone" ?></small></p><?php
}
else {
?>
<table class="tasks">
  <thead>
  <tr>
    <td class="header">Description</td>
    <td class="header">Resource</td>        
	<td class="header">Status</td>
  </tr>
  </thead>
<?php foreach ($tasks as $i => $task): ?>
  <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
	<td class="summary">	
	  <a href="<?php echo url_for('task/show?taskid='.$task->getTaskid()) ?>">
		<?php echo $task->getShortsummary()?>
	  </a>
	</td>
	<td class="resource"><?php echo $task->getResource()->getUser()->getName(); ?></td>        
	<td class="status"><?php echo $task->getTaskstatus(); ?></td>
  </tr>
<?php endforeach; ?>
</table>
<?php }?>